#!/bin/bash -x

for host in 192.168.0.0/24
do
	iptables -A INPUT -p tcp --dport 21 -s $host -j ACCEPT
	iptables -A OUTPUT -p tcp --sport 21 -d $host -j ACCEPT

	iptables -A INPUT -p tcp --dport 39999:43000 -s $host -j ACCEPT
	iptables -A OUTPUT -p tcp --sport 39999:43000 -d $host -j ACCEPT


done
	

for ftp_hosts in 200.160.204.198
do

	iptables -A INPUT -p tcp --dport 39999:43000 -s $ftp_hosts -j ACCEPT
	iptables -A OUTPUT -p tcp --sport 39999:43000 -d $ftp_hosts -j ACCEPT
done
